<template>
  <div id="app">
    <router-view>
    </router-view>
  </div>
</template>

<script>


export default {
  name: 'App',
  mounted() {
    window.addEventListener('unload', this.saveState)
  },
  methods: {
    saveState() {
      sessionStorage.setItem('state', JSON.stringify(this.$store.state.tab))
    },
  }
}
</script>

<style>
  html,body,#app{
    margin: 0;
    padding: 0;
    height: 100%;
  }
  .el-breadcrumb{
    margin-bottom: 15px;
    font-size: 15px;
  }

  .el-card{
    box-shadow: 0 1px 1px rgba(0,0,0,0.15);
  }
  .el-table{
    margin-top: 15px;
  }
</style>
